package com.chenglu.android.common.widget;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

import androidx.viewpager.widget.ViewPager;

/**
 * @author: lyj
 * @Created: by Copyright 2023/3/7 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 * @Description：禁止左右滑动
 */

public class NotScrollViewPager extends ViewPager {
    public NotScrollViewPager(Context context) {
        super(context);
    }

    public NotScrollViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        return false;
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return false;
    }
}
